package com.wjx.reservation_service.service;

import com.wjx.reservation_service.model.Serve;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IServeService {
    //显示所有服务
    public List<Serve> showService();
    //根据关键词查询
    public List<Serve> search(String keyword);
    //根据id查询服务
    public Serve queryServiceById(int id);
    //根据服务名查询服务
    public Serve queryServiceByName(String name);
    //根据id更新服务
    public int updateServiceById(Serve serve);
    //根据id删除服务
    public int deleteServiceById(int id);
    //添加服务
    public int insertService(Serve serve);
}
